package com.lesso.yjy.sunflower.app.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.lesso.yjy.sunflower.domain.service.AttendanceRecordDomainService;
import com.lesso.yjy.sunflower.pojo.dto.AttendanceRecordDTO;
import com.lesso.yjy.sunflower.pojo.dto.AttendanceRecordQueryDTO;
import com.lesso.yjy.sunflower.pojo.dto.EmployeeDTO;
import com.lesso.yjy.sunflower.pojo.dto.EmployeeQueryDTO;
import com.lesso.yjy.sunflower.pojo.vo.AttendanceRecordVO;
import com.lesso.yjy.sunflower.pojo.vo.EmployeeVO;
import com.lesso.yjy.sunflower.service.IAttendanceRecordService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

@Service
@DubboService
public class AttendanceRecordServiceImpl implements IAttendanceRecordService {
    private final AttendanceRecordDomainService attendanceRecordDomainService;

    public AttendanceRecordServiceImpl(AttendanceRecordDomainService attendanceRecordDomainService){
        this.attendanceRecordDomainService = attendanceRecordDomainService;
    }

    @Override
    public Long save(AttendanceRecordDTO dto) {
        return attendanceRecordDomainService.save(dto);
    }

    @Override
    public Page<AttendanceRecordVO> page(AttendanceRecordQueryDTO dto) {
        return attendanceRecordDomainService.page(dto);
    }

    @Override
    public Page<AttendanceRecordVO> customPage(AttendanceRecordQueryDTO dto) {
        return attendanceRecordDomainService.customPage(dto);
    }

    @Override
    public void deleteById(Long id) {
        attendanceRecordDomainService.deleteById(id);
    }

    @Override
    public void update(AttendanceRecordDTO dto) {
        attendanceRecordDomainService.update(dto);
    }
}

